"""
    log.py
    ~~~~~~~~
    记录数据库操作日志
    

    :author: Fufu, 2024/4/25
"""
from typing import Any

from app.core.logger import admin_log


def log_crud(level: str, info: str, *, more: Any = None):
    """数据库操作日志"""
    code = 'default' if level == 'error' else ''
    admin_log(level, info, more=more, code=code, depth=2)
